/*
 * Copyright 2016-2019 yoara
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package yhao.infra.feature.solr.local.core.group;

import java.util.List;
import java.util.Map;

/**
 * Group查询返回数据包装类
 *
 * @author yoara
 */
public class SolrGroupBean<T> {
    private int docsCount; //query 查询的结果数
    private int ngCount; //query 查询的组数
    private String groupField;
    private Map<String,List<T>> groupResult;

    public SolrGroupBean(String groupField) {
        this.groupField = groupField;
    }

    public String getGroupField() {
        return groupField;
    }

    public int getNgCount() {
        return ngCount;
    }

    public void setNgCount(int ngCount) {
        this.ngCount = ngCount;
    }

    public Map<String, List<T>> getGroupResult() {
        return groupResult;
    }

    public void setGroupResult(Map<String, List<T>> groupResult) {
        this.groupResult = groupResult;
    }

    public int getDocsCount() {
        return docsCount;
    }

    public void setDocsCount(int docsCount) {
        this.docsCount = docsCount;
    }
}
